<template>
    <div style="height: 100%;">
        <ul data-v-1d31e4e4="" class="rec-job-list" style="margin-left: -40px;margin-right: 30px;margin-top: 0px">
           
            <div data-v-4c7022cc="" data-v-1d31e4e4="" class="job-card-wrap" :class="activeItem ===item.id ?'active':''" v-for="item in list" :key="item.id">
                <li data-v-4c7022cc="" class="job-card-box" @click="handleClick(item)">
                    <div data-v-4c7022cc="" class="job-info">
                        <div data-v-4c7022cc="" class="job-title clearfix"><a data-v-4c7022cc=""
                                href="/job_detail/a3b8ea90c7c364dc03V92N-9GVJQ.html" class="job-name">{{ item.jobName }}</a><span
                                data-v-4c7022cc="" class="job-salary">9-14K</span></div>
                        <ul data-v-4c7022cc="" class="tag-list">
                            <li data-v-4c7022cc="" v-for="(tag,index) in item.tags" :key="index">{{ tag }}</li>
                        </ul>
                    </div>
                    <div data-v-4c7022cc="" class="job-card-footer"><a data-v-4c7022cc=""
                            href="/gongsi/00139e073d3c34ee03d42t-1EA~~.html?from=top-card"
                            ka="company_logo_click_00139e073d3c34ee03d42t-1EA~~" target="_blank" class="boss-info">
                            <div data-v-4c7022cc="" class="boss-logo"><img data-v-4c7022cc="" vload_1741179230237=""
                                    src="https://img.bosszhipin.com/beijin/upload/com/logo/20190606/b7a86f356ac26314ba9fa346df6e46bd2045763317843bf01c6fc21f18fcb09d.jpg?x-oss-process=image/resize,w_100,limit_0"><!---->
                            </div><span data-v-4c7022cc="" class="boss-name">{{ item.companyName }}</span>
                        </a><span data-v-4c7022cc="" class="company-location"> {{ item.address }} </span></div>
                </li>
            </div>
           
        </ul>
    </div>

</template>

<script>
export default {
    data() {
        return {
            list: [
                {id:1,jobName:'前端工程师',tags:['5-10年','大专','Vue','React','计算机/软件工程相关专业'],companyName:'泉州加推',address:'武汉·武昌区·武珞路'},
                {id:2,jobName:'前端工程师',tags:['5-10年','大专','Vue','React','计算机/软件工程相关专业'],companyName:'泉州加推',address:'武汉·武昌区·武珞路'},
                {id:3,jobName:'前端工程师',tags:['5-10年','大专','Vue','React','计算机/软件工程相关专业'],companyName:'泉州加推',address:'武汉·武昌区·武珞路'},
                {id:4,jobName:'前端工程师',tags:['5-10年','大专','Vue','React','计算机/软件工程相关专业'],companyName:'泉州加推',address:'武汉·武昌区·武珞路'},
                {id:5,jobName:'前端工程师',tags:['5-10年','大专','Vue','React','计算机/软件工程相关专业'],companyName:'泉州加推',address:'武汉·武昌区·武珞路'},
                {id:6,jobName:'前端工程师',tags:['5-10年','大专','Vue','React','计算机/软件工程相关专业'],companyName:'泉州加推',address:'武汉·武昌区·武珞路'},
            ],
            activeItem:1
        }
    },
    methods: {
        handleClick (item) {
            this.activeItem = item.id
            console.log('点击了', item)
        }
    }
}
</script>

<style lang="scss" scoped>
li,
ol,
ul {
    list-style: none;
}

.job-card-wrap {
    transition: box-shadow .2slinear;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, .1);
}
.job-card-wrap:hover {
    z-index: 2;
    box-shadow: 0 20px 16px 0 hsla(0, 0%, 70.2%, .2);
}

.job-card-wrap.active .job-card-box {
    z-index: 2;
    border: 1px solid #00bebd;
    background: #f8f8f8;
}

.job-card-wrap .job-card-box {
    position: relative;
    border-radius: 12px;
    cursor: pointer;
    background: #fff;
    z-index: 2;
}

.job-card-wrap .job-card-box .job-info {
    display: block;
    padding: 16px 20px;
}

.job-card-wrap .job-card-box .job-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: linear-gradient(90deg, #f5fcfc, #fcfbfa);
    border-radius: 0 0 12px 12px;
}

.boss-info {
    display: inline-flex;
    align-items: center;
    overflow: hidden;
    margin-right: 4px;
    transition: all .2slinear;
}

.company-location {
    font-size: 13px;
    color: #666;
    line-height: 18px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-shrink: 0;
}

.job-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 24px;
}

.job-name {
    color: #00a6a7;
    flex: 1;
    font-size: 16px;
    font-weight: 500;
    line-height: 22px;
    color: #222;
    padding-right: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all .2slinear;
}

.job-salary {
    font-size: 20px;
    font-family: kanzhun-mix, kanzhun-Regular;
    font-weight: 500;
    color: #fe574a;
    line-height: 24px;
    height: 24px;
    flex-shrink: 0;
}

.tag-list {
    height: 22px;
    overflow: hidden;
    margin-left: -46px;
    margin-right: -4px;
    margin-top: 10px;
}
.tag-list li {
    float: left;
    margin-left: 4px;
    margin-right: 4px;
    background: #ededed;;
    border-radius: 4px;
    font-size: 13px;
    color: #666;
    line-height: 18px;
    padding: 2px 8px;
    transition: all .2slinear;
}
.boss-logo img {
    display: block;
    width: 24px;
    height: 24px;
    border-radius: 4px;
}
</style>